package com.luoshi.ucenterservice.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName ScanMapper
 * @Description:类描述
 * @Author luochangqin
 * @Date 2021/5/23
 * @Version V1.0
 **/
@Configuration
@MapperScan("com.luoshi.ucenterservice.mapper")
public class ScanMapper {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
